#ifndef UUNITORBUILDINGTYPE
#define UUNITORBUILDINGTYPE
#include "../stdafx.h"
#include "../UModel.h"
#include "../ULeafWindow.h"


class TUnitOrBuildingType
{
protected:
	TUnitOrBuildingType(TIniFile* inifile);
public:
	std::string Name;
	GLuint Icon;
	TModel *TypeModel;
	bool HasModel;
	int Width, Height;
	int WindowTag; //unique number for Units/Building types, see ULeafWindow.h for more information
};


class TUnitType: public TUnitOrBuildingType
{
public:
	TUnitType(TIniFile* inifile);
};


class TBuildingType: public TUnitOrBuildingType
{
public:
	TBuildingType(TIniFile* inifile);
};


#endif
